package rocketman;
/*
Copyright (C) <year> <name of author>

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
import java.awt.Graphics2D;
import java.util.*;

public class LevelStateLevel 
{
private LevelState my_state;
public LevelStateLevel(int levelnumber) {
	if (levelnumber == 1)
		setState(new LevelStateLevel1());
	else if (levelnumber == 2)
		setState(new LevelStateLevel2());
	else if (levelnumber == 3)
		setState(new LevelStateLevel3());
}

public void setState(LevelState ns) {
	this.my_state = ns;
}

public void setData(LinkedList<Enemy> e, LinkedList<Sprite> s, AIengine aie, Room r, LinkedList<Sprite> c, int spritecnt)
{
	this.my_state.setData(e,s,aie,r,c,spritecnt);
}

public void eventloop(Graphics2D g2d) {
	this.my_state.eventloop(g2d);
}

public void setMapX(double mx)
{
	this.my_state.setMapX(mx);
}
};

